#!/bin/sh

case "$1" in
  valgrind)
	 cd home/paladi/Desktop/ITU/T5/ASFT/Project/ \
	superemote/srserverlibrary/source/
	g++ PluginCrawler.cpp PluginCrawler.h -o plug    
	 valgrind --leak-check=yes ./plug | sendmail n.paladi@gmail.com
	;;
	
  gcov)
	cd home/paladi/Desktop/ITU/T5/ASFT/Project \
	cliserver/source/
	gcc -fprofile-arcs -ftest-coverage main.c 
	gcov main.c |sendmail n.paladi@gmail.com
	;;
  *)
	echo "Use: $0 {gcov|valgrind|help}"
	exit 1
	;;
esac
